//
//  Changed.m
//  记账deam
//
//  Created by apple on 16/5/11.
//  Copyright © 2016年 --- 杨江 ---. All rights reserved.
//

#import "Changed.h"

static Changed *singleton = nil;
@implementation Changed

+ (instancetype)defaultSingleton {
    
    // GCD创建单例，效率更高，性能更好，消耗更低。
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        singleton = [[Changed alloc] init];
        singleton.dic = [NSMutableDictionary dictionary];
    });
    return singleton;
}
@end
